package com.puppet.building182.pojo.enums;


import lombok.Getter;

@Getter
public enum BuildingCode {
    SAVE_SUCCESS(200, "保存成功"),
    SAVE_FAIL(500, "保存失败"),
    DELETE_SUCCESS(200, "删除成功"),
    DELETE_BUILD_FAIL(200, "删除失败,该楼下有房子"),
    LOGIN_FAIL(500, "登录失败"),
    UPDATE_SUCCESS(200,"修改成功"),
    UPDATE_FAIL(500,"修改失败"),
    LOGIN_SUCCESS(200,"登录成功"),
    DELETE_FAIL_OWNER(200,"该名下有房子与之绑定"),
    DELETE_USER_FAIL(500,"该用户下有职业绑定");
    private final Integer code;
    private final String message;

    BuildingCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

}
